package com.stedu.mall.orderservice.mapper;

import com.stedu.mall.common.bean.Order;

import java.util.List;

public interface OrderMapper {
    //增加
    int insert(Order order);
    //删除
    int delete(String id);
    //修改
    int update(Order order);
    //根据id查询
    Order selectById(String id);
    //通过userId查询
    List<Order> selectByUserId(Integer userId);
    //查询所有订单
    List<Order> selectByCondition(Order condition);
}
